package com.szrt.java.day20161229.demo03;

public class Car {

	String brand;
	Double price;
	Double weight;
	
	public void setBrand(String brand){
		this.brand = brand;
	}
	public String getBrand(){
		return brand;
	}
	
	public void setPrice(Double price){
		this.price = price;
	}
	public Double getPrice(){
		return price;
	}
	
	public void setWeight(Double weight){
		this.weight = weight;
	}
	public Double getWeight(){
		return weight;
	}
	
	public static void main(String[] args) {
		
		Car cc = new Car();
		
		cc.setBrand("AE86");
		cc.setPrice(666666.6);
		cc.setWeight(500.0);
		
		String b = cc.getBrand();
		Double p = cc.getPrice();
		Double w = cc.getWeight();
		
		System.out.println("小车的品牌为："+b);
		System.out.println("小车的价格为："+p+"元");
		System.out.println("小车的重量为："+w+"KG");
	}
	
}
